package com.tech.platform.cms.authz.sso.exception;

public class LoginException extends RuntimeException{

    private Integer code;
    private String errorMessage;

    public LoginException() {
        super("登陆失败！");
        this.code = 500;
        this.errorMessage = "登陆！";
    }

    public LoginException(int code,String msg){
        super(msg);
        this.code = code;
        this.errorMessage = msg;
    }

    public LoginException(Exception exception) {
        super(exception.getMessage());
        this.code = 500;
        this.errorMessage = exception.getMessage();
    }
}
